/* 基础样式 */
:root {
    --primary-color: #1e88e5; /* 蓝色主色调 */
    --secondary-color: #0d47a1; /* 深蓝色 */
    --dark-color: #1565c0; /* 深蓝色 */
    --light-color: #e3f2fd; /* 浅蓝色背景 */
    --success-color: #2e7d32;
    --font-main: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: #333;
    background-color: #f5f9ff; /* 浅蓝色背景 */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.header {
    background-color: var(--dark-color);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav li {
    margin-right: 1.5rem;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover, .nav .active a {
    color: #bbdefb; /* 浅蓝色悬停效果 */
}

/* 分类筛选 */
.category-filter {
    margin: 2rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #90caf9;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--dark-color);
}

.filter-btn:hover {
    background: #e3f2fd;
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 景点卡片网格 */
.attractions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.attraction-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    border: 1px solid #e3f2fd;
}

.attraction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(30, 136, 229, 0.3);
}

.attraction-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--primary-color);
}

.card-content {
    padding: 1.2rem;
}

.card-content h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.category-tag {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: var(--light-color);
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
    color: var(--dark-color);
    border: 1px solid #bbdefb;
}

.card-content button a{
    color: #fff;
    text-decoration: none;
}

.details-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 0.8rem;
    transition: background 0.3s;
}

.details-btn:hover {
    background: var(--secondary-color);
}

/* 页脚样式 */
.footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav ul {
        flex-direction: column;
    }
    
    .nav li {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .attractions-grid {
        grid-template-columns: 1fr;
    }
    
    .category-filter {
        justify-content: center;
    }
}